
#ifndef _MEMBER_AUDIO_H_
#define _MEMBER_AUDIO_H_

#include <BAudioOutput>
#ifdef _WINDOWS_SYSTEM_
#include <windows.h>
#include <mmsystem.h>
#endif
#define BUFFER_SIZE 4096    //output buffer size. 

namespace BWE
{
	class member_BAudioOutput
	{
	public:
		member_BAudioOutput();
		~member_BAudioOutput();

		bool callback(BAudioOutput* audio);
		bool log(const BString& log);

#ifdef _WINDOWS_SYSTEM_
		HWAVEOUT		hWaveOut;
		WAVEFORMATEX	wavform;
		WAVEHDR			wavhdr;
#endif

		BStringArray	deviceNames;
		BByteArray		buffer;
		BString			logText;
	};
}

#endif
